package com.wish.g04.system.api;

import com.wish.g04.common.core.constant.ServiceNameConstants;
import com.wish.g04.system.api.domain.DictData;
import com.wish.g04.system.api.factory.RemoteDictFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 字典服务
 * 
 * @author tianyandong
 */
@FeignClient(contextId = "remoteDictService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteDictFallbackFactory.class)
public interface RemoteDictService
{

    /**
     * 根据字典类型查询字典数据信息 楼盘服务调用
     * @param dictType
     * @return
     */
    @GetMapping(value = "/dict/data/getDictDataByType/{dictType}")
    public List<DictData> getDictDataByType(@PathVariable("dictType") String dictType);
}
